fix: suggest --wallet-name when already connected#38
Conversation
The "Already connected" error from `auth` and `connect` now suggests connecting an additional wallet via --wallet-name, alongside --force. Also enables showGlobalOptions so global flags like --wallet-name appear in every subcommand's --help. Closes #37 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe pull request enhances CLI user guidance across three targeted areas: error messages for both authentication and connection commands now suggest using ChangesCLI User Guidance Enhancements
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Summary
Already connectederror fromauthandconnectnow suggests connecting an additional wallet via--wallet-name <name>, in addition to the existing--forcehint.showGlobalOptionsso global flags (--wallet-name,--connection-secret,--verbose) now appear under a Global Options section in every subcommand's--help— previously they were only visible in top-level help.Closes #37
Test plan
yarn buildpassesauth --helpshows--wallet-nameunder "Global Options"--wallet-namesuggestion🤖 Generated with Claude Code
Summary by CodeRabbit
--forceto overwrite or--wallet-name <name>to connect an additional wallet instead.